<!--{if $_SGLOBAL['inajax']}-->
	<div style="text-align:right;">
		<a onclick="hideMenu();" href="javascript:;" style="margin-right:5px;">关闭</a>
	</div>
	<img src="{$_GET[filepath]}"/>	
<!--{else}-->
	<!--{eval $_TPL['titles'] = array('产品列表');}-->
	<!--{eval $friendsname = array(1 => '仅好友可见',2 => '指定好友可见',3 => '仅自己可见',4 => '凭密码可见');}-->
	<!--{template header}-->
	
<script type="text/javascript" src="highslide/highslide-with-gallery.js"></script>
<link rel="stylesheet" type="text/css" href="highslide/highslide.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="highslide/highslide-ie6.css" />
<![endif]-->


<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.lang = {
	cssDirection: 'ltr',
	loadingText : 'Loading...',
	loadingTitle : '点击关闭',
	focusTitle : 'Click to bring to front',
	fullExpandTitle : '点击查看实际大小',
	creditsText : '',
	creditsTitle : '',
	previousText : '上一张',
	nextText : '下一张', 
	moveText : '移动',
	closeText : '关闭', 
	closeTitle : 'Ecs关闭', 
	resizeTitle : '缩放',
	playText : '自动播放',
	playTitle : '空格播放',
	pauseText : '暂停',
	pauseTitle : '空格键暂停',
	previousTitle : '上一张(<-)',
	nextTitle : '下一张(->)',
	moveTitle : '移动',
	fullExpandText : '1:1',
	number: ' %1 / %2',
	restoreTitle : '点击关闭图片，点击图片并拖动，使用方向键控制图片播放'
};

hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.wrapperClassName = 'white';
hs.captionEval = 'this.a.title';
hs.numberPosition = 'caption';
hs.useBox = true;
hs.width = 800;
hs.height = 500;
//hs.dimmingOpacity = 0.8;

// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		position: 'bottom center',
		opacity: 0.75,
		hideOnMouseOut: true
	},
	thumbstrip: {
		position: 'below',
		mode: 'horizontal',
		zIndex:999,
		relativeTo: 'expander'
	}
});

</script>
	<style>
	.popupmenu_centerbox{
		 max-width:1024px;
	}
   .highslide-thumbstrip-horizontal table{
   		margin:0 auto;
   }
	</style>
	<div class="tabs_header">
		<ul class="tabs">
			<li class="active"><a href="space.php?do=product"><span>产品列表</span></a></li>
			<li class="null"><a href="cp.php?ac=product">添加产品</a></li>
		</ul>	
	</div>	
			
	<div id="content" style="width:640px;">
		
		
		<!--{if $searchkey}-->
		<div class="h_status">以下是搜索 <span style="color:red;font-weight:bold;">$searchkey</span> 结果列表</div>
		<!--{/if}-->
		
		<!--{if $count}-->
		<div class="entry_list">
		
			<table width="100%" cellspacing="0" cellpadding="3" class="infotable">
				<!--{loop $list $key $value}-->
				<tr>
					<td width="15" valign="top"><!--{eval echo $perpage*($page-1)+$key+1;}--></td>
					<td width="150" valign="top">
						<a href="{$value[filepath]}" id="filepaht_{$value[picid]}" title="$value[name] $value[title]" onclick="return hs.expand(this)"><img src="{$value[thumbpath]}"/>	</a>				
					</td>
					<td valign="top">					
						<p>产品名称：$value[name]</p>
						<p>产品说明：$value[title]</p>
						<p>产品分类: <a href="space.php?do=product&cat=$value[cat]">{$category[$value[cat]][name]}</a><!--{if $value[subcat]}-->&nbsp;-->&nbsp;<a href="space.php?do=product&cat=$value[cat]&subcat=$value[subcat]">{$category[$value[cat]][subcat][$value[subcat]][name]}</a><!--{/if}--></p>
					</td>
					<td  width="200" valign="top">
						<a href="javascript:;">{$_SN[$value[uid]]}</a> <span class="gray"><!--{date('Y-m-d H:i',$value[dateline],1)}--></span>
						<br/>
						<!--{if $_SGLOBAL[supe_uid] == $value[uid] || checkperm('manageblog')}-->
							<a href="cp.php?ac=product&picid=$value[picid]">编辑</a>
							<span class="pipe">|</span>
							<a href="cp.php?ac=product&picid=$value[picid]&op=delete" id="blog_delete_$value[picid]" onclick="ajaxmenu(event, this.id)">删除</a>
							<span class="pipe">|</span>
						<!--{/if}-->
					</td>
				</tr>			
				<!--{/loop}-->
			</table>		
		</div>
		
		<div class="page">$multi</div>
		
		<!--{else}-->
		<div class="c_form">还没有相关的产品。</div>
		<!--{/if}-->

	</div>

	<div id="sidebar" style="width:150px;">

	<!--{if $category}-->
		<div class="cat">
		<h3>产品分类</h3>
		<ul class="post_list line_list">
			<li  <!--{if empty($subcat)&&empty($cat)}-->class="current"<!--{/if}-->><a href="space.php?do=product">全部产品</a></li>
			<!--{loop $category $k $v}-->
			<li <!--{if $cat==$k&&empty($subcat)}-->class="current"<!--{/if}-->><a href="space.php?do=product&cat=$k">------$v[name]</a></li>
				<!--{loop $v[subcat] $k1 $v1}-->
				<li <!--{if $cat==$k&&$subcat==$k1}-->class="current"<!--{/if}-->>			
					<a href="space.php?do=product&cat=$k&subcat=$k1">---------$v1[name]</a>
				</li>
				
				<!--{/loop}-->
			<!--{/loop}-->
		</ul>
		</div>
	<!--{/if}-->



	</div>

	<script>
	function fuidgoto(fuid) {
		window.location.href = "space.php?do=blog&view=we&fuid="+fuid;
	}
	</script>
		
	<!--{template footer}-->
<!--{/if}-->